import request from "@/utils/request";

const api_name = "/tiku";

export default {
  getFeedBack(currentPage) {
    return request({
      url: `${api_name}/feedback/list/${currentPage}`,
      method: "get",
    });
  },
  updateFeedBack(title) {
    console.log(title);
    return request({
      url: `${api_name}/feedback/update`,
      method: "post",
      data: title,
    });
  },
  feedBackBackup(collection) {
    return request({
      url: `${api_name}/feedback/backup/${collection}`,
      method: "get",
    });
  },
  remove(account, time) {
    console.log(account, time);
    return request({
      url: `${api_name}/feedback/remove/${account}/${time}`,
      method: "delete",
    });
  },
  getRevise(currentPage) {
    return request({
      url: `${api_name}/feedback/getRevise/${currentPage}`,
      method: "get",
    });
  },
  updateForRevise(data) {
    return request({
      url: `${api_name}/feedback/updateForRevise`,
      method: "post",
      data: data,
    });
  },
};
